#include <iostream>
using namespace std;
#include <cstdlib>
#include <cstring>

class Block{
public:
  	Block();
	void setX(int);
	void setY(int);
	int x();
	int y();
	bool exists();
	void setExists(bool);
private:
	int bX, bY;
	bool blockExists;
};

Block::Block(){
	blockExists = false;
	bX = 0;
	bY = 0;
}
void Block::setX(int blockX){
	bX = blockX;
}
void Block::setY(int blockY){
	bY = blockY;
}
int Block::x(){
	return bX;
}
int Block::y(){
	return bY;
}
bool Block::exists(){
	return blockExists;
}
void Block::setExists(bool exist){
	blockExists = exist;
}
